<?php
use think\facade\Route;


Route::post('register','app/User/register');
Route::post('login','app/user/login');
Route::post('yzm','app/user/yzm');


Route::post('upload','app/user/upload');
Route::post('getGoodsInfo','app/Goods/getGoodsInfo');
Route::post('kdy','app/indent/kdy');


Route::get('index','app/banner/index');
Route::get('sortindex','app/sort/index');
Route::get('sortindex','app/sort/index');
Route::get('newsindex','app/news/index');

Route::group('user',function(){
    Route::post('editPost','app/user/editPost');
    Route::get('add','app/address/add');
    Route::get('address','app/address/getaddressInfo');
    Route::get('del','app/address/del');
    Route::get('editaddress','app/address/editaddress');
    Route::post('getlist','app/user/getNewsInfo');
    Route::post('addmoney','app/wallet/addM');
    Route::post('record','app/wallet/record');
    Route::post('addindent','app/indent/add');
    Route::post('pay','app/Pay/pay');

})->middleware(\api\app\middleware\checktoken::class);